package com.lucenten.collect.config.dao.impl;

import cn.quevo.core.beetlsql.BasicDao;
import org.springframework.stereotype.Repository;

import com.lucenten.collect.config.dao.SequenceIndexDao;
import com.lucenten.collect.config.entity.SequenceIndex;
import com.lucenten.collect.config.entity.query.SequenceIndexQuery;

/**
 * 序列索引 Dao接口实现
 *
 * @author July july_sky@foxmail.com
 * @version 1.0
 * @date 2019/04/29 21:11:56
 * @Copyright 湘豫（北京）科技有限公司版权所有.All Rights Reserved.
 */
@Repository("sequenceIndexDao")
public class SequenceIndexDaoImpl extends BasicDao<SequenceIndex,SequenceIndexQuery> implements SequenceIndexDao {

    @Override
    public String getSqlPre() {
        return "collect.config.sequenceIndex.";
    }

    @Override
    public SequenceIndex getSequenceIndex(SequenceIndexQuery sequenceIndexQuery) {
        return super.getSinge(sequenceIndexQuery, SequenceIndex.class);
    }
}
